﻿using System;
using Volo.Abp.Domain.Entities;
using Volo.Abp.MultiTenancy;

namespace AliFox.BaseService.BaseData;

public class UserOrganization(Guid? tenantId, Guid userId, Guid organizationId) : Entity, IMultiTenant
{
    public Guid? TenantId { get; init; } = tenantId;

    public Guid UserId { get; init; } = userId;

    public Guid OrganizationId { get; init; } = organizationId;

    public override object[] GetKeys()
    {
        return [UserId, OrganizationId];
    }
}